﻿namespace Lanbt.Core.Entity.EntityDB.QuartzTable
{
    public class LANBT_TRIGGERS
    {
        /// <summary>
        /// 调度名称
        /// </summary>
        [SqlSugar.SugarColumn(Length = 120, ColumnDescription = "调度名称")]
        public string SCHED_NAME { get; set; }

        /// <summary>
        /// 触发器名称
        /// </summary>
        [SqlSugar.SugarColumn(Length = 150, ColumnDescription = "任务名称")]
        public string TRIGGER_NAME { get; set; }

        /// <summary>
        /// 触发器组
        /// </summary>
        [SqlSugar.SugarColumn(Length = 150, ColumnDescription = "任务名称")]
        public string TRIGGER_GROUP { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        [SqlSugar.SugarColumn(Length = 150, ColumnDescription = "任务名称")]
        public string JOB_NAME { get; set; }

        /// <summary>
        /// 任务组
        /// </summary>
        [SqlSugar.SugarColumn(Length = 150, ColumnDescription = "任务组")]
        public string JOB_GROUP { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        [SqlSugar.SugarColumn(Length = 250,ColumnDescription = "说明")]
        public string? DESCRIPTION { get; set; }

        /// <summary>
        /// 下次执行时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnDescription = "下次执行时间")]
        public long? NEXT_FIRE_TIME { get; set; }

        /// <summary>
        /// 上次执行时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnDescription = "上次执行时间")]
        public long? PREV_FIRE_TIME { get; set; }

        /// <summary>
        /// 线程优先级
        /// </summary>
        [SqlSugar.SugarColumn(ColumnDescription = "线程优先级")]
        public int? PRIORITY { get; set; }

        /// <summary>
        /// 触发状态此字段很重要
        /// </summary>
        [SqlSugar.SugarColumn(Length = 16, ColumnDescription = "触发状态此字段很重要")]
        public string TRIGGER_STATE { get; set; }

        /// <summary>
        /// 触发器类型
        /// </summary>
        [SqlSugar.SugarColumn(Length = 8, ColumnDescription = "触发器类型")]
        public string TRIGGER_TYPE { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = false, ColumnDescription = "开始时间")]
        public long START_TIME { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [SqlSugar.SugarColumn(ColumnDescription = "结束时间")]
        public long? END_TIME { get; set; }

        /// <summary>
        /// 日历名称
        /// </summary>
        [SqlSugar.SugarColumn(Length = 200,ColumnDescription = "日历名称")]
        public string? CALENDAR_NAME { get; set; }

        /// <summary>
        /// 失配_中断
        /// </summary>
        [SqlSugar.SugarColumn(ColumnDescription = "失配_中断")]
        public int? MISFIRE_INSTR { get; set; }

        /// <summary>
        /// 作业_数据
        /// </summary>
        [SqlSugar.SugarColumn(ColumnDataType = "varbinary(max)", Length = 0,ColumnDescription = "作业_数据")]
        public byte[]? JOB_DATA { get; set; }
    }
}
